.class public Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;
.super Ljava/lang/Object;
.source "FarmisNotificationConfiguration.java"

# interfaces
.implements Llt/farmis/libraries/notificationcontroller/data/configurations/NotificationConfiguration;


# static fields
.field public static final TAG:Ljava/lang/String; = "FarmisNotificationConfiguration"


# instance fields
.field public mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;


# direct methods
.method public constructor <init>(Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;,
            Llt/farmis/libraries/notificationcontroller/exceptions/InvalidNotificationTypeException;
        }
    .end annotation

    .line 54
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    if-eqz p1, :cond_1

    .line 64
    invoke-virtual {p1}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getType()I

    move-result v0

    const/4 v1, -0x1

    if-le v0, v1, :cond_0

    .line 71
    iput-object p1, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    return-void

    .line 65
    :cond_0
    sget-object p1, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->TAG:Ljava/lang/String;

    const-string v0, "The type of the provided notification model is invalid - has to be a positive integer and correspond to an actual type..."

    invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 67
    new-instance p1, Llt/farmis/libraries/notificationcontroller/exceptions/InvalidNotificationTypeException;

    const-string v0, "The type of the provided notification model is invalid. Notification type has to be a positive integer and correspond to an actual logical type. Most of the configuration is based solely on this property!"

    invoke-direct {p1, v0}, Llt/farmis/libraries/notificationcontroller/exceptions/InvalidNotificationTypeException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 57
    :cond_1
    sget-object p1, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->TAG:Ljava/lang/String;

    const-string v0, "The provided notification model is null. Only valid non empty notification models should be used!"

    invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 59
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "The provided notification model is invalid and cannot be configured!"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method private shouldOpenNotificationList()Z
    .locals 3

    .line 462
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    return v1

    .line 465
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v2, "group_conversation_"

    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    xor-int/2addr v0, v1

    return v0
.end method


# virtual methods
.method public getAccentColor(Landroid/content/Context;)I
    .locals 2

    .line 393
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getType()I

    move-result v0

    const/4 v1, 0x4

    if-eq v0, v1, :cond_0

    const/16 v1, 0xc

    if-eq v0, v1, :cond_0

    const v0, 0x7f060072

    .line 399
    invoke-static {p1, v0}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p1

    return p1

    :cond_0
    const v0, 0x7f060074

    .line 396
    invoke-static {p1, v0}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p1

    return p1
.end method

.method public getAdditionalNotificationStyle(Landroid/content/Context;)Landroidx/core/app/NotificationCompat$Style;
    .locals 3

    .line 276
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getType()I

    move-result v0

    const/4 v1, 0x4

    if-eq v0, v1, :cond_0

    const/16 v1, 0xc

    if-eq v0, v1, :cond_0

    goto :goto_0

    .line 281
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getImageURL()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    :goto_0
    const/4 p1, 0x0

    goto :goto_2

    .line 286
    :cond_1
    new-instance v0, Landroidx/core/app/NotificationCompat$BigPictureStyle;

    invoke-direct {v0}, Landroidx/core/app/NotificationCompat$BigPictureStyle;-><init>()V

    .line 287
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->getTitle(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/core/app/NotificationCompat$BigPictureStyle;->setBigContentTitle(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$BigPictureStyle;

    .line 288
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->getContent(Landroid/content/Context;)Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/core/app/NotificationCompat$BigPictureStyle;->setSummaryText(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$BigPictureStyle;

    const/4 v1, 0x6

    .line 292
    :try_start_0
    invoke-static {p1, v1}, Llt/noframe/gpsfarmguide/utils/loader/ImageLoaderFactory;->getImageLoader(Landroid/content/Context;I)Llt/noframe/gpsfarmguide/utils/loader/CustomImageLoader;

    move-result-object p1

    .line 293
    iget-object v1, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v1}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getImageURL()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Lcom/nostra13/universalimageloader/core/ImageLoader;->loadImageSync(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object p1

    .line 295
    invoke-virtual {v0, p1}, Landroidx/core/app/NotificationCompat$BigPictureStyle;->bigPicture(Landroid/graphics/Bitmap;)Landroidx/core/app/NotificationCompat$BigPictureStyle;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    .line 297
    sget-object v1, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->TAG:Ljava/lang/String;

    const-string v2, "Failed to load and set a remote image for the advertisement..."

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 298
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 300
    invoke-static {v2}, Lcom/crashlytics/android/Crashlytics;->log(Ljava/lang/String;)V

    .line 301
    invoke-static {p1}, Lcom/crashlytics/android/Crashlytics;->logException(Ljava/lang/Throwable;)V

    :goto_1
    move-object p1, v0

    :goto_2
    return-object p1
.end method

.method public getCategory()Ljava/lang/String;
    .locals 2

    .line 406
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getType()I

    move-result v0

    const/4 v1, 0x4

    if-eq v0, v1, :cond_1

    const/16 v1, 0xc

    if-eq v0, v1, :cond_0

    const-string v0, "event"

    return-object v0

    :cond_0
    const-string v0, "promo"

    return-object v0

    :cond_1
    const-string v0, "status"

    return-object v0
.end method

.method public getContent(Landroid/content/Context;)Ljava/lang/CharSequence;
    .locals 5

    .line 201
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;->getArguments()[Ljava/lang/String;

    move-result-object v0

    .line 204
    iget-object v1, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v1}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getType()I

    move-result v1

    const/4 v2, 0x4

    const/4 v3, 0x1

    const v4, 0x7f110165

    if-eq v1, v2, :cond_1

    const/16 v2, 0xc

    if-eq v1, v2, :cond_0

    .line 215
    invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    return-object p1

    .line 211
    :cond_0
    invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, v3, p1}, Llt/noframe/gpsfarmguide/notifications/FarmisNotificationHelper;->getArgument([Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1

    .line 207
    :cond_1
    invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, v3, p1}, Llt/noframe/gpsfarmguide/notifications/FarmisNotificationHelper;->getArgument([Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public getLargeIcon(Landroid/content/Context;)Landroid/graphics/Bitmap;
    .locals 4

    .line 331
    invoke-static {p1}, Llt/farmis/libraries/notificationcontroller/utilities/NotificationIconBuilder;->with(Landroid/content/Context;)Llt/farmis/libraries/notificationcontroller/utilities/NotificationIconBuilder;

    move-result-object v0

    .line 334
    iget-object v1, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v1}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getType()I

    move-result v1

    const/4 v2, 0x4

    if-eq v1, v2, :cond_1

    const/16 v0, 0xc

    const v2, 0x7f08011b

    if-eq v1, v0, :cond_0

    .line 343
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-static {p1, v2}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1

    .line 340
    :cond_0
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-static {p1, v2}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1

    .line 337
    :cond_1
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->getPriorityColor(Landroid/content/Context;)I

    move-result p1

    const/4 v1, 0x1

    new-array v1, v1, [I

    const/4 v2, 0x0

    const v3, 0x7f080144

    aput v3, v1, v2

    invoke-virtual {v0, p1, v1}, Llt/farmis/libraries/notificationcontroller/utilities/NotificationIconBuilder;->buildLargeIconWithBackground(I[I)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1
.end method

.method public getLargeIconForGroup(Landroid/content/Context;)Landroid/graphics/Bitmap;
    .locals 3

    .line 351
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v1, "group_general"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    const v1, 0x7f08011b

    if-eqz v0, :cond_0

    .line 352
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-static {p1, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1

    .line 354
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v2, "group_internal"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 355
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-static {p1, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1

    .line 357
    :cond_1
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v2, "group_important"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 358
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-static {p1, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1

    .line 360
    :cond_2
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v2, "group_ad"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 361
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-static {p1, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1

    .line 363
    :cond_3
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v2, "group_main"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 364
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-static {p1, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1

    .line 366
    :cond_4
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v2, "group_main_"

    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 367
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-static {p1, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1

    .line 371
    :cond_5
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-static {p1, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1
.end method

.method public getMessage(Landroid/content/Context;)Ljava/lang/String;
    .locals 4

    .line 222
    iget-object p1, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;->getArguments()[Ljava/lang/String;

    move-result-object p1

    .line 225
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getType()I

    move-result v0

    const/4 v1, 0x4

    const/4 v2, 0x2

    const-string v3, ""

    if-eq v0, v1, :cond_1

    const/16 v1, 0xc

    if-eq v0, v1, :cond_0

    return-object v3

    .line 232
    :cond_0
    invoke-static {p1, v2, v3}, Llt/noframe/gpsfarmguide/notifications/FarmisNotificationHelper;->getArgument([Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1

    .line 228
    :cond_1
    invoke-static {p1, v2, v3}, Llt/noframe/gpsfarmguide/notifications/FarmisNotificationHelper;->getArgument([Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public getOpenIntent(Landroid/content/Context;)Landroid/content/Intent;
    .locals 2

    .line 127
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getType()I

    move-result v0

    const/4 v1, 0x4

    if-eq v0, v1, :cond_0

    const/16 v1, 0xc

    if-eq v0, v1, :cond_0

    .line 137
    sget-object p1, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->TAG:Ljava/lang/String;

    const-string v0, "The type of the notification that is being handled was not recognised. Returning null..."

    invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    const/4 p1, 0x0

    return-object p1

    .line 131
    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-class v1, Llt/noframe/gpsfarmguide/views/NotificationDetailsActivity;

    invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 132
    iget-object p1, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    const-string v1, "key_notification"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    const/high16 p1, 0x10000000

    .line 149
    invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    const/high16 p1, 0x4000000

    .line 151
    invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    return-object v0
.end method

.method public getPriorityColor(Landroid/content/Context;)I
    .locals 2

    .line 422
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getPriority()I

    move-result v0

    const/4 v1, -0x2

    if-eq v0, v1, :cond_4

    const/4 v1, -0x1

    if-eq v0, v1, :cond_3

    if-eqz v0, :cond_2

    const/4 v1, 0x1

    if-eq v0, v1, :cond_1

    const/4 v1, 0x2

    if-eq v0, v1, :cond_0

    const v0, 0x7f0600b3

    .line 439
    invoke-static {p1, v0}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p1

    return p1

    :cond_0
    const v0, 0x7f060112

    .line 436
    invoke-static {p1, v0}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p1

    return p1

    :cond_1
    const v0, 0x7f060111

    .line 433
    invoke-static {p1, v0}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p1

    return p1

    :cond_2
    const v0, 0x7f060113

    .line 430
    invoke-static {p1, v0}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p1

    return p1

    :cond_3
    const v0, 0x7f06010b

    .line 427
    invoke-static {p1, v0}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p1

    return p1

    :cond_4
    const v0, 0x7f06010c

    .line 424
    invoke-static {p1, v0}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p1

    return p1
.end method

.method public getSmallIcon()I
    .locals 1

    const v0, 0x7f08011c

    return v0
.end method

.method public getSoundResource()I
    .locals 3

    .line 379
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getType()I

    move-result v0

    const/4 v1, 0x4

    const/4 v2, 0x0

    if-eq v0, v1, :cond_0

    const/16 v1, 0xc

    if-eq v0, v1, :cond_0

    :cond_0
    return v2
.end method

.method public getSummaryContent(Landroid/content/Context;)Ljava/lang/String;
    .locals 1

    const v0, 0x7f11016e

    .line 263
    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public getSummaryNotificationOpenIntent(Landroid/content/Context;)Landroid/content/Intent;
    .locals 2

    .line 162
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->shouldOpenNotificationList()Z

    move-result v0

    if-nez v0, :cond_0

    .line 163
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->getOpenIntent(Landroid/content/Context;)Landroid/content/Intent;

    move-result-object v0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    if-nez v0, :cond_1

    .line 168
    sget-object v0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->TAG:Ljava/lang/String;

    const-string v1, "The notification being handled was not recognised. Creating the default Intent for the notification List Activity..."

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 171
    invoke-static {p1}, Llt/noframe/gpsfarmguide/notifications/FarmisNotificationHelper;->createNotificationListIntent(Landroid/content/Context;)Landroid/content/Intent;

    move-result-object v0

    :cond_1
    return-object v0
.end method

.method public getSummaryText(Landroid/content/Context;)Ljava/lang/String;
    .locals 1

    const v0, 0x7f11016f

    .line 268
    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public getSummaryTitle(Landroid/content/Context;)Ljava/lang/String;
    .locals 2

    .line 248
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v1, "group_conversation"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    .line 249
    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v1, "group_conversation_"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const v0, 0x7f110170

    .line 257
    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    return-object p1

    .line 251
    :cond_1
    :goto_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;->getArguments()[Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x1

    invoke-static {v0, v1}, Llt/noframe/gpsfarmguide/notifications/FarmisNotificationHelper;->getArgument([Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    .line 254
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_2

    goto :goto_1

    :cond_2
    const v0, 0x7f11016c

    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    :goto_1
    return-object v0
.end method

.method public getTicker(Landroid/content/Context;)Ljava/lang/String;
    .locals 3

    const/4 v0, 0x1

    .line 243
    new-array v0, v0, [Ljava/lang/Object;

    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->getContent(Landroid/content/Context;)Ljava/lang/CharSequence;

    move-result-object v1

    const/4 v2, 0x0

    aput-object v1, v0, v2

    const v1, 0x7f110166

    invoke-virtual {p1, v1, v0}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public getTitle(Landroid/content/Context;)Ljava/lang/String;
    .locals 4

    .line 180
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;->getArguments()[Ljava/lang/String;

    move-result-object v0

    .line 183
    iget-object v1, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v1}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getType()I

    move-result v1

    const/4 v2, 0x4

    const/4 v3, 0x0

    if-eq v1, v2, :cond_1

    const/16 v2, 0xc

    if-eq v1, v2, :cond_0

    const v0, 0x7f110167

    .line 194
    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    return-object p1

    :cond_0
    const v1, 0x7f110162

    .line 190
    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, v3, p1}, Llt/noframe/gpsfarmguide/notifications/FarmisNotificationHelper;->getArgument([Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1

    :cond_1
    const v1, 0x7f110171

    .line 186
    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, v3, p1}, Llt/noframe/gpsfarmguide/notifications/FarmisNotificationHelper;->getArgument([Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public obtainSummaryNotificationID()I
    .locals 4

    .line 77
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v1, "group_general"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const v0, 0x4f0b5

    return v0

    .line 80
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v1, "group_internal"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    const v0, 0x4f0b4

    return v0

    .line 83
    :cond_1
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v1, "group_important"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    const v0, 0x4f0b3

    return v0

    .line 86
    :cond_2
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v1, "group_ad"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    const v1, 0x4f0b7

    if-eqz v0, :cond_3

    .line 87
    sget-object v0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->TAG:Ljava/lang/String;

    const-string v2, "Ads should never be grouped. An error has occurred here for some reason. Attempting to handle the matter quietly..."

    invoke-static {v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    return v1

    .line 92
    :cond_3
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v2, "group_main"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    return v1

    .line 95
    :cond_4
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v2, "group_main_"

    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_7

    .line 98
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v2, "group_conversation"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    const v2, 0x4f0b2

    if-eqz v0, :cond_5

    return v2

    .line 101
    :cond_5
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/farmis/libraries/notificationcontroller/data/models/BaseNotificationModel;->getActualGroupID()Ljava/lang/String;

    move-result-object v0

    const-string v3, "group_conversation_"

    invoke-virtual {v0, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_6

    .line 103
    :try_start_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/notifications/data/configurations/FarmisNotificationConfiguration;->mNotification:Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/notifications/data/models/FarmisNotificationModel;->getRelationID()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0
    :try_end_0
    .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0

    add-int/2addr v0, v1

    return v0

    :catch_0
    move-exception v0

    .line 105
    invoke-virtual {v0}, Ljava/lang/NumberFormatException;->printStackTrace()V

    const-string v1, "Failed to create an appropriate ID for the notification group (namely a conversation summary). The default will be used instead..."

    .line 106
    invoke-static {v1}, Lcom/crashlytics/android/Crashlytics;->log(Ljava/lang/String;)V

    .line 108
    invoke-static {v0}, Lcom/crashlytics/android/Crashlytics;->logException(Ljava/lang/Throwable;)V

    return v2

    :cond_6
    const v0, 0x4f0b6

    return v0

    .line 96
    :cond_7
    new-instance v0, Ljava/lang/UnsupportedOperationException;

    const-string v1, "Grouping \'GROUP_MAIN_PREFIX\'is currently unsupported. Please do not use!"

    invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw v0
.end method
